package com.fmbah.ohiojx.config.shiro;


import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author fb
 * @Description OAuth2Token
 * @date 2019年10月17日
 */
public class OAuth2Token implements AuthenticationToken {
    private static final long serialVersionUID = 1L;
    private String token;
    public OAuth2Token(String token) {
        this.token = token;
    }
    @Override
    public String getPrincipal() {
        return token;
    }
    @Override
    public Object getCredentials() {
        return token;
    }
}
